<?php

/**
 * 用户订单模型
 * 
 * @file   UserOrder.php
 * @author yff
 * @date   2018-9-21 10:55:09
 */
namespace App\Http\WechatAuth\Models;

use Illuminate\Database\Eloquent\Model;
use App\Api\Traits\Orm\PageTrait;

class UserOrder extends Model
{
    use PageTrait;

    protected $table = 'user_order';

    protected $guarded = [];

    /**
     * 关联用户模型
     */
    public function user()
    {
        return $this->belongsTo('App\Http\WechatAuth\Models\User', 'uid');
    }
}